package com.company.www;

public class Product {
	private int id;
	private String manufacturer;
	private String productno;
	private String name;
	private double price;
	private String unit;
	private int stockcount;//库存量
	private int buynumbers;//购买数量
	
	public Product() {
	}
	
	public Product(int id,String manufacturer, String productno, String name,
				   double price, String unit, int stockcount, int buynumbers) {
		this.id=id;
		this.manufacturer = manufacturer;
		this.productno = productno;
		this.name = name;
		this.price = price;
		this.unit = unit;
		this.stockcount = stockcount;
		this.buynumbers = buynumbers;
	}
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public String getManufacturer() {
		return manufacturer;
	}
	
	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}
	
	public String getProductno() {
		return productno;
	}
	
	public void setProductno(String productno) {
		this.productno = productno;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public double getPrice() {
		return price;
	}
	
	public void setPrice(double price) {
		this.price = price;
	}
	
	public String getUnit() {
		return unit;
	}
	
	public void setUnit(String unit) {
		this.unit = unit;
	}
	
	public int getStockcount() {
		return stockcount;
	}
	
	public void setStockcount(int stockcount) {
		this.stockcount = stockcount;
	}
	
	public int getBuynumbers() {
		return buynumbers;
	}
	
	public void setBuynumbers(int buynumbers) {
		this.buynumbers = buynumbers;
	}
	
	@Override
	public String toString() {
		return "Product{" +
				"id=" + id +
				", manufacturer='" + manufacturer + '\'' +
				", productno='" + productno + '\'' +
				", name='" + name + '\'' +
				", price=" + price +
				", unit='" + unit + '\'' +
				", stockcount=" + stockcount +
				", buynumbers=" + buynumbers +
				'}';
	}
}
